package com.flick.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 根据注解设置把原po对象转换为KeyValue对象
 * Created by 170029 on 2018/8/9.
 */
@Target(ElementType.FIELD)//只能应用于成员变量上
@Retention(RetentionPolicy.RUNTIME)//保存到运行时
public @interface IdName {
    String id() default "id";
    String name() default "name";
}
